﻿/*
 * Date：2023/04/18
 * Subject：商品SkU表
 * Author：Max
 * 
 * 
 * **/
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH5_2010A.Shopping.Domain
{
    /// <summary>
    /// 商品SKU
    /// </summary>
    [Table("tb_product_sku")]
    public class ProductSKUModel:AuditField<Guid>
    {
        public Guid SPUID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Description = "产品名称")]
        public string? Name { get; set; }

        
        /// <summary>
        /// 
        /// </summary>
        [Display(Description = "产品规格")]
        public string? Specs { get; set; }   //  {颜色：红色，内存：182G，屏幕：大}

        /// <summary>
        /// 
        /// </summary>
        [Display(Description = "进货价格")]
        public decimal? InPrice{ get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Description = "市场价格")]
        public decimal? MarketPrice { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Description = "销售价格")]
        public decimal? SalePrice { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Description = "初始库存")]
        public int InitStock { get; set; } = 0;

        /// <summary>
        /// 
        /// </summary>
        [Display(Description = "可用库存")]
        public int ValidStock { get; set; } = 0;

        /// <summary>
        /// 
        /// </summary>
        [Display(Description = "锁定库存")]
        public int LockStock { get; set; } = 0;
    }
}
